
import _request from "../../common/_request";
import {Message} from "element-ui";

let lib_city = {

    module : 'library.city',

    //加载城市
    city_list : function (callback){
        let params = _request._params(this.module, 'city_list')
        _request._post(params, function(response){
            if (response.code !== _request.success) {
                Message.info(response.msg)
                return
            }
            //回调数据
            callback(response.data)

        }, 0);
    },

}

export default lib_city
